<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 10 Jul 2012 13:24:01
 *
 * 
 */
$namabulan = array('', 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember');
$tgllist = array();
$blnlist = array();
$thnlist = array();

for($i = 1; $i <= 31; $i++)
{
	$tgllist[$i] = $i;
}
for($j = 1; $j <= 12; $j++)
{
	$blnlist[$j] = $namabulan[$j];
}
$thn = date("Y");
$thnlalu = $thn - 50;
for($k = $thn; $k >= $thnlalu; $k--)
{
	$thnlist[$k] = $k;
}
?>

    <header class="" id="overview">
      <div class="page-header">
          <h1>Data Pendidikan Informal</h1>
      </div>
    </header>
	<div class="row">
    	<div class="span12">
               	<?php echo Form::open(URL::base().'kursus/save', array('class' => 'form-horizontal'));?>
                    <fieldset>
						<legend>Pendidikan Informal</legend>
						
                        <div class="control-group">
                        	<label class="control-label" for="Pendidikan">Nama Training</label>
                        	<div class="controls">
                        		<?php echo Form::input('nama_training', '', array())?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Lembaga</label>
                        	<div class="controls">
                        		<?php echo Form::input('lembaga', '', array())?>
                        	</div>
                        </div>
                         <div class="control-group">
                          		<label class="control-label" for="Institusi">Lokasi</label> 
                          		<div class="controls">
                          			<?php echo Form::input('lokasi', '', array('class' => 'input-medium'))?>
                          		</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Tanggal Mulai</label>
                        	<div class="controls">
                        	<?php echo Form::select('tanggal_mulai', $tgllist, '', array('class' => 'input-small'))?> - 
                        	<?php echo Form::select('bulan_mulai', $blnlist, '', array('class' => 'input-small'))?> -
                        	<?php echo Form::select('tahun_mulai', $thnlist, '', array('class' => 'input-small'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Tanggal Selesai</label>
                        	<div class="controls">
                        	<?php echo Form::select('tanggal_selesai', $tgllist, '', array('class' => 'input-small'))?> - 
                        	<?php echo Form::select('bulan_selesai', $blnlist, '', array('class' => 'input-small'))?> -
                        	<?php echo Form::select('tahun_selesai', $thnlist, '', array('class' => 'input-small'))?>
                        	</div>
                        </div>
                        <div class="form-actions">
                             <input type="submit" name="submit" value="Save"  class="btn btn-primary"/>
                             <button class="btn btn-primary">Cancel</button>
                        </div>

                    </fieldset>
                  <?php echo Form::close()?>
           </div>
      </div>